home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung / Power-Programmierung (Tewi)(1994).iso / magazine / msysjour / vol06 / 01 / kermit / wnkterm < prev    next >
Text File  |  1990-12-31  |  2KB  |  75 lines

  1. # WNKTERM - A Simple Windows Terminal Program with Kermit
  2. #
  3. # Copyright (c) 1989, 1990 by
  4. # William S. Hall
  5. # 3665  Benton Street, #66
  6. # Santa Clara, CA 95051
  7. #
  8.  
  9. # This program should be created using the Windows 3.0 SDK and
  10. # libraries.  Use the overlay linker, version 5.x supplied with the C
  11. # compiler.
  12.  
  13. ## Macros
  14. # location of tty window code
  15. TTYDIR=.
  16. # location of this source
  17. TERMDIR=.
  18. # location of Kermit stuff
  19. KERMDIR=.
  20.  
  21. # This program should be made using the Windows 3.0 SDK and
  22. # Microsoft C version 5.1 or 6.0.
  23. # Use the overlay linker, version 5.x supplied with the Microsoft C
  24. # 5.1 or 6.0 compiler.
  25.  
  26. # compile macro for C 6.0
  27. cp=cl -c -AM -Ghsw -Osler -Zpe -W3 -I$(TTYDIR) -DWINDOWS
  28.  
  29. # compile macro for Microsoft C 5.1
  30. # cp=cl -c -AM -Gsw -Os -Zpe -W3 -I$(TTYDIR) -DWINDOWS
  31.  
  32. all : wnkterm.exe
  33.  
  34. #
  35. # make the terminal .RES file
  36. #
  37.  
  38. wnkterm.res : wnkterm.rc wntmnu.rc wnterm.h wntdlg.dlg wntdlg.h kermit.ico \
  39.           $(KERMDIR)\wnkerm.h $(KERMDIR)\wnkdlg.h \
  40.           $(KERMDIR)\wnkmnu.rc $(KERMDIR)\wnkerm.dlg
  41.     rc -r -I $(KERMDIR) wnkterm.rc
  42.  
  43. #
  44. # make the terminal .OBJ files
  45. #
  46. wnkterm.obj : wnterm.c wnterm.h $(KERMDIR)\wnkerm.h $(TTYDIR)\ttycls.h
  47.     $(cp) -I$(KERMDIR) -DKERMIT -NT _TERMRES -Fownkterm.obj wnterm.c
  48.  
  49. wntfns.obj : wntfns.c wnterm.h wntdlg.h $(TTYDIR)\ttycls.h
  50.     $(cp) -NT _TERMRES wntfns.c
  51.  
  52. wntint.obj : wntint.c wnterm.h $(TTYDIR)\ttycls.h
  53.     $(cp) -NT _TERMINT wntint.c
  54.  
  55. wntmsc.obj : wntmsc.c wnterm.h wntdlg.h $(TTYDIR)\ttycls.h
  56.     $(cp) -NT _TERMMSC wntmsc.c
  57.  
  58. ttycls.obj : $(TTYDIR)\ttycls.c $(TTYDIR)\ttycls.h
  59.     $(cp) -NT _TERMRES $(TTYDIR)\ttycls.c
  60.  
  61. #
  62. # make the .DEF file
  63. #
  64. wnkterm.def : wnterm.def $(KERMDIR)\wnkerm.def
  65.     copy wnterm.def + $(KERMDIR)\wnkerm.def wnkterm.def
  66.  
  67. #
  68. # create the .EXE file, add resources, and make a map file
  69. #
  70. wnkterm.exe : wnkterm.def wnkterm.lnk $(KERMDIR)\wnkerm.lib wnkterm.res \
  71.               wnkterm.obj wntfns.obj wntint.obj wntmsc.obj ttycls.obj \
  72.           $(KERMDIR)\wnkerm.lib
  73.     link @wnkterm.lnk
  74.     rc wnkterm.res wnkterm.exe
  75.